home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / portable / traceon.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.1 KB  |  46 lines

  1. #define CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef traceon
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_traceon = "$Header: C:\CURSES\portable\RCS\traceon.c 2.1 1993/06/18 20:19:00 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   traceon()    - begin tracing curses functions
  15.  
  16.   X/Open Description:
  17.      This routine turns on internal tracing of the curses functions.
  18.      Tracing will only occur when the library is compiled with the
  19.      appropriate macro defined. In the case of PDCurses, this macro is
  20.      PDCDEBUG.
  21.      This function is defined as a macro.
  22.  
  23.   X/Open Return Value:
  24.      The traceon() function returns OK.
  25.  
  26.   X/Open Errors:
  27.      No errors are defined for this function.
  28.  
  29.   Portability:
  30.      PDCurses    int traceon( void );
  31.      X/Open Dec '88    int traceon( void );
  32.      BSD Curses    int traceon( void );
  33.      SYS V Curses    int traceon( void );
  34.  
  35. **man-end**********************************************************************/
  36.  
  37. int    traceon(void)
  38. {
  39. #ifdef PDCDEBUG
  40.     if (trace_on) PDC_debug("traceon() - called\n");
  41. #endif
  42.  
  43.     trace_on = TRUE;
  44.     return( OK );
  45. }
  46.